package catalina.startup;

import java.util.List;

public class StandardServer implements LifeCycle {

    private List<StandardService> serviceList ;

    public List<StandardService> getServiceList() {
        return serviceList;
    }

    public void setServiceList(List<StandardService> serviceList) {
        this.serviceList = serviceList;
    }

    @Override
    public void init() {
        for (StandardService standardService : serviceList) {
            standardService.init();
        }
    }

    @Override
    public void start() {
        for (StandardService standardService : serviceList) {
            standardService.start();
        }
    }

    @Override
    public void stop() {

    }

    @Override
    public void destroy() {

    }
}
